/**
 * jims
 */
package com.jims.master.modules.doctor.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * ApplyDrugWithdraEntity
 * @author zp
 * @version 2017-07-21
 */
public class ApplyDrugWithdra extends DataEntity<ApplyDrugWithdra> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人id
	private String visitId;		// 住院ID
	private String priceId;		// 价表id
	private String storageId;		// 领药库房
	private String itemClass;		// 类别
	private String itemName;		// 药品名称
	private String itemCode;		// 药品代码
	private String itemSpec;		// 药品规格
	private String units;		// 单位
	private String amount;		// 数量
	private String retAmount;		// 退费数量
	private String costs;		// 应付费用
	private String charges;		// 实收费用
	private String retType;
	private String ordersId;
	private String inpBillId;

	private List<ApplyDrugWithdra> list;
	
	public ApplyDrugWithdra() {
		super();
	}

	public ApplyDrugWithdra(String id){
		super(id);
	}

	@Length(min=0, max=64, message="病人id长度必须介于 0 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=0, max=64, message="住院ID长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=64, message="价表id长度必须介于 0 和 64 之间")
	public String getPriceId() {
		return priceId;
	}

	public void setPriceId(String priceId) {
		this.priceId = priceId;
	}
	
	@Length(min=0, max=64, message="领药库房长度必须介于 0 和 64 之间")
	public String getStorageId() {
		return storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}
	
	@Length(min=0, max=64, message="类别长度必须介于 0 和 64 之间")
	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}
	
	@Length(min=0, max=64, message="药品名称长度必须介于 0 和 64 之间")
	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	
	@Length(min=0, max=64, message="药品代码长度必须介于 0 和 64 之间")
	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	
	@Length(min=0, max=64, message="药品规格长度必须介于 0 和 64 之间")
	public String getItemSpec() {
		return itemSpec;
	}

	public void setItemSpec(String itemSpec) {
		this.itemSpec = itemSpec;
	}
	
	@Length(min=0, max=3, message="单位长度必须介于 0 和 3 之间")
	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=11, message="退费数量长度必须介于 0 和 11 之间")
	public String getRetAmount() {
		return retAmount;
	}

	public void setRetAmount(String retAmount) {
		this.retAmount = retAmount;
	}
	
	public String getCosts() {
		return costs;
	}

	public void setCosts(String costs) {
		this.costs = costs;
	}
	
	public String getCharges() {
		return charges;
	}

	public void setCharges(String charges) {
		this.charges = charges;
	}
	


	public String getRetType() {
		return retType;
	}

	public void setRetType(String retType) {
		this.retType = retType;
	}

	public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}

	public String getInpBillId() {
		return inpBillId;
	}

	public void setInpBillId(String inpBillId) {
		this.inpBillId = inpBillId;
	}


	public List<ApplyDrugWithdra> getList() {
		return list;
	}

	public void setList(List<ApplyDrugWithdra> list) {
		this.list = list;
	}

}